const url = require('url')
const logger =  require('../log')
const urlStr = 'https://www.baidu.com:443/path?id=2#tag=3'
console.log(logger.level);

logger.debug(url.parse(urlStr));   //parse 解析地址的相关内容
// logger.debug(url.format(obj))    相反操作
const urlparams =new URLSearchParams(url.parse(urlStr).search)
logger.debug(urlparams.get('id'))